using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PreviewScene : MonoBehaviour
{
    public Transform Player;
    public string SceneName;

    private Nirvana.SceneBuilder _sceneBuilder;

    private void Start()
    {
        
    }

    public void LoadScene()
    {
        if (_sceneBuilder != null)
        {
            _sceneBuilder.UnLoad();
            _sceneBuilder = null;
        }

        _sceneBuilder = new Nirvana.SceneBuilder(SceneName, Player);
    }
}
